package com.canaan.system.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 日志文件 配置属性
 *
 * @author realsee
 */
@Component
@ConfigurationProperties(prefix = "log-file")
public class LogFileProperties {

    /**
     * 日志路径
     */
    private String path;

    /**
     * 日志文件后缀
     */
    private String suffix;

    /**
     * 日志文件压缩包后缀
     */
    private String compressSuffix;

    /**
     * 默认读取行数
     */
    private Integer readLineNum;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getCompressSuffix() {
        return compressSuffix;
    }

    public void setCompressSuffix(String compressSuffix) {
        this.compressSuffix = compressSuffix;
    }

    public Integer getReadLineNum() {
        return readLineNum;
    }

    public void setReadLineNum(Integer readLineNum) {
        this.readLineNum = readLineNum;
    }
}
